home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
util
/
Mac F2C 1.3.sit
/
Mac F2C 1.3
/
Test Project ƒ
/
test.68K.make
< prev
next >
Wrap
Text File
|
1995-11-18
|
2KB
|
80 lines
# File: test.68K.make
# Target: test.68K
# Sources: test.c
Makefile = test.68K.make
object_folder = ":objects_68K:"
fsource = test.f
csource = F2Cmain.c
fobjs = {object_folder}test.f.o
cobjs = {object_folder}F2Cmain.c.o
objects = {fobjs} ∂
{cobjs}
Segment.1 = "{object_folder}F2Cmain.c.o" ∂
"{object_folder}test.f.o"
Segment.2 = "{MW68KLibraries}MPW ANSI (4i/8d) C.68K.Lib" ∂
"{MW68KLibraries}MacOS.Lib" ∂
"{MW68KLibraries}MathLib68K (4i/8d).Lib" ∂
"{MW68KLibraries}ToolLibs.o.lib"
Segment.3 = "{F2CLibraries}"libF77.68K ∂
"{F2CLibraries}"libI77.68K
C = MWC68K
COptions = -mapcr -model far -align mac68k -intsize 4 -dsize 64 -d MPW_CW_F2C -w off
F2C = f2c
#F2COptions = -f -!i8 -A -P -a -E -ec -!R -r8 -s -w66 -Nq150 -Nx200 -Ns801 -Nc20 -Nn401 -NL200 -NC99 -Nl256
F2COptions = -f -!i8 -A -a -E -ec -!R -r8 -w66
Link = MWLink68K
LinkOptions = -d -c 'MPS ' -t 'MPST' -fastlink off -mpwtool -model far -intsize 4
test.68K ƒƒ {Makefile} {Objects}
{Link} {LinkOptions} ∂
-sb "Your Code" -ra "Your Code"=resPreload,resProtected,resLocked ∂
{Segment.1} ∂
-sb "CW libs" -ra "CW libs"=resProtected,resPurgeable ∂
{Segment.2} ∂
-sb "F2C libs" -ra "F2C libs"=resProtected,resPurgeable ∂
{Segment.3} ∂
-o test.68K
.f.o ƒ .f
{F2C} {F2COptions} {Default}.f #compile the fortran and then compile the resulting C file.
setfile -t "TEXT" -c "MPS " {default}.c
{C} {default}.c {COptions} ∂
-o {targDir}{default}.f.o
.c.o ƒ .c
{C} {default}.c {COptions} ∂
-o {targDir}{default}.c.o
# If your FORTRAN code has common blocks add common.c.o to the cobjs list
# and then this rule should take care of it
common.c ƒ {fobjs}
setfile -t "TEXT" -c "MPS " ?+_com.c
catenate ?+_com.c > {Targ} #This puts all the common block files into one file for compiling.
#The wild card lets us add common blocks to the fortran code
#without having to change the makefile! The common block files all
#end with _com.c
{objects} ƒ {Makefile} #do a full rebuild if the makefile changes
{object_folder} ƒ :
{object_folder}test.f.o ƒ test.f
{object_folder}F2Cmain.c.o ƒ F2Cmain.c
# makefile end